package com.example.blogdesign.Service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blogdesign.Entity.User;
import com.example.blogdesign.dto.LoginFormDTO;
import com.example.blogdesign.dto.RegisterDTO;
import com.example.blogdesign.dto.Result;
import com.example.blogdesign.dto.UserDTO;


public interface IUserService extends IService<User> {

    Result<?> sendCode(String phone);

    Result<Object> login(LoginFormDTO loginForm);

    Result<?> register(RegisterDTO registerDTO);

    Result<?> logout(String token);

    Result<UserDTO> queryUserById(String userId);
}
